// rollup.config.dev.js
import rollupConfig, { plugins } from './rollupConfig/index'
import server from 'rollup-plugin-serve'
import liverload from 'rollup-plugin-livereload'

export default {
  ...rollupConfig,
  output: {
    file: 'bundle.js',
    format: 'cjs'
  },
  plugins: [
    ...plugins,
    server({
      openPage: '/index.html',
      port: 5000
    }),
    liverload()
  ]
}
